on (release) {

	if (this._name == "main" && !expand) {

			fieldTextVar = 	"<FONT color=\""+onColor+"\" >"+optionText+"</FONT>";
			
			for (var i=1;i<10;i++){
				_parent._parent.closeMenu("nav"+i)
				eval("_parent._parent.nav"+i+".main").expand=false
			}
			
			_parent._parent.makeSubItems(nav);
			
			trace(this)
			
			expand = true;
			

	} else if (this._name == "main") {
	
			expand = false;
			
			_parent._parent.closeMenu(_parent._name);
	}else{
		isSelected=true
		if(isSelected){
			fieldTextVar = 	"<FONT color=\""+"#ff0000"+"\" >"+optionText+"</FONT>";
		}else{
			fieldTextVar = 	"<FONT color=\""+onColor+"\" >"+optionText+"</FONT>";
		}
		_root.fCleanAttachedPlayerMovies();
		_root.fGotoLesson(this.ChapterId,this.LessonId)
	}
	

}
on (rollOver) {
	/*if ((substring(this._name,1,1) == "s") || ((items < 1) && (this._name == "main"))) {
		subBullet.targetAlpha = 100;
	}
	*/
	//if (this.Type=="Session"){

	//	_root.fGenerateRollOverList(this.LessonObj,this.obj,"Skill")
		if(isSelected){
			fieldTextVar = 	"<FONT color=\""+"#ff0000"+"\" >"+optionText+"</FONT>";
		}else{
			fieldTextVar = 	"<FONT color=\""+onColor+"\" >"+optionText+"</FONT>";
		}

	//}



}
on (rollOut, dragOut) {
	/*if ((substring(this._name,1,1) == "s") || ((items < 1) && (this._name == "main"))) {
		subBullet.targetAlpha = 60;
	}
	*/
	//if (this.Type=="Session"){
		fieldTextVar = 	"<FONT color=\""+offColor+"\" >"+optionText+"</FONT>";
	//}

}